package com.offroader.core;

import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;

/**
 * Fragment和其它组件通信（接口穿透）
 * 
 * @author li.li
 *
 */
public interface IFrag<T> {

	void onBackPressed();

	void onActivityResult(int requestCode, int resultCode, Intent data);

	void onRequestResonse(T page);

	boolean isShowBack();

	void setRefreshing(boolean isShow);

	void setMore(boolean isShow);

	boolean onCreateOptionsMenu(Menu menu);

	boolean onOptionsItemSelected(MenuItem item);

	void doShowNetError();

	void hideLoadDialog(boolean delay);

	void hideWaitDialog();
	
	void showWaitDialog();
	
	void showLoadDialog();

	void notEmpty();

	boolean isShownNetError();
	
	boolean isAdded();
	
}
